package com.javaee.term.model;

import javax.persistence.*;

@Table(name = "sale_man")
public class SaleMan {
    /**
     * 销售人员表主键
     */
    @Id
    @Column(name = "man_id")
    private Integer manId;

    private String name;

    private String phone;

    private String account;

    private String password;

    /**
     * 获取销售人员表主键
     *
     * @return man_id - 销售人员表主键
     */
    public Integer getManId() {
        return manId;
    }

    /**
     * 设置销售人员表主键
     *
     * @param manId 销售人员表主键
     */
    public void setManId(Integer manId) {
        this.manId = manId;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * @return account
     */
    public String getAccount() {
        return account;
    }

    /**
     * @param account
     */
    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }
}